package consts

import (
	"log"
	"os"
	"path/filepath"
)

var RootPath string
var LogPath string
var ConfPath string
var SettingFile string
var InstallFile string

func init() {
	s, err := os.UserHomeDir()
	if err != nil {
		log.Fatal("获取用户主目录失败: %v", err)
	}
	RootPath = s
	RootPath = filepath.Join(RootPath, ".ruov")
	LogPath = filepath.Join(RootPath, "clilog")
	ConfPath = filepath.Join(RootPath, "conf")
	SettingFile = filepath.Join(ConfPath, "setting.ini")
	InstallFile = filepath.Join(ConfPath, "install.ini")
}
